<template>
  <div>
    <h2>我是Profile组件</h2>
    <p>我是Profile里的信息</p>
    <ul>
      <li v-for="(item, key) in userData" :key="key">{{ key }} : {{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Profile",
  computed: {
    userData() {
      return this.$route.query;
    },
  },
  created() {
    console.log("Profile被创建了");
  },
};
</script>